package com.yonyou.cloud.member.adapters.repository.orm.dao;

import com.yonyou.cloud.member.domainmodel.entities.member.Member;
import com.yonyou.cloud.member.domainmodel.vo.MemberId;

import java.util.List;

public interface MemberDao {
    Member findById(MemberId id);

    Member findByPhone(String phone);

    List<Member> listByLevel(String level);

    int count();

    boolean insert(Member member);

    boolean delete(MemberId id);

    MemberId first();
}